import request from '@/utils/request'

// 查询医院简介列表
export function listSynopsis(query) {
  return request({
    url: '/hospital/synopsis/list',
    method: 'get',
    params: query
  })
}

// 查询医院简介详细
export function getSynopsis(id) {
  return request({
    url: '/hospital/synopsis/' + id,
    method: 'get'
  })
}

// 新增医院简介
export function addSynopsis(data) {
  return request({
    url: '/hospital/synopsis',
    method: 'post',
    data: data
  })
}

// 修改医院简介
export function updateSynopsis(data) {
  return request({
    url: '/hospital/synopsis',
    method: 'put',
    data: data
  })
}

// 删除医院简介
export function delSynopsis(id) {
  return request({
    url: '/hospital/synopsis/' + id,
    method: 'delete'
  })
}
